package com.lxm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 点赞表
 * </p>
 *
 * @author ${author}
 * @since 2024-10-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
public class Likes implements Serializable {


    private static final long serialVersionUID = 1L;

    /**
     * 点赞ID，主键
     */
    @TableId(value = "like_id", type = IdType.AUTO)
    private Long likeId;

    /**
     * 用户ID，外键
     */
    private Long userId;

    /**
     * 被点赞对象ID
     */
    private Long likedId;

    /**
     * 点赞类型，1表示博客，2表示评论,3表示商品
     */
    private Integer type;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;


}
